package com.yylc.cscore.service;

import com.yylc.cscore.bean.TaskRuleBean;
import com.yylc.cscore.bean.base.PageBean;

/**
 * @author xiangnan
 * date 2018/5/2
 */
public interface TaskRuleService {

    PageBean<TaskRuleBean> getTaskRuleList(int type, int current, int pageSize);

    int addTaskRule(TaskRuleBean bean);

    int updateTaskRule(TaskRuleBean bean);

    int updateTaskRule(int status, int id);

    int deleteTaskRule(TaskRuleBean bean);

    int triggerTaskRule(int id);

    /**
     * 手动触发任务分配
     */
    int artificialTriggerTaskRule(TaskRuleBean bean, String userIdList);

}
